package com.daka.service.impl;

import com.daka.dao.VolunteerMapper;
import com.daka.entity.Volunteer;
import com.daka.service.VolunteerService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author beliveli on 2016/3/31 0031.
 */
@Service("volunteerService")
@SuppressWarnings("unused")
public class VolunteerServiceImpl implements VolunteerService {

    @Resource
    private VolunteerMapper volunteerMapper;

    public Volunteer selectById(int id) {
        return volunteerMapper.selectById(id);
    }

    public List<Volunteer> selectAll() {
        return volunteerMapper.selectAll();
    }
}
